package com.yloveg.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yloveg.common.AccessTokenUtil;
import com.yloveg.common.DateUtil;
import com.yloveg.dao.VTokenMapper;
import com.yloveg.dao.VUserMapper;
import com.yloveg.entity.VToken;
import com.yloveg.entity.VUser;
import com.yloveg.entity.VVisitor;
import com.yloveg.service.VTokenService;
import com.yloveg.service.VUserService;
@Service
public class VUserServiceImpl implements VUserService {

	@Autowired
    private VUserMapper vUser;

	@Override
	public int insertVUser(VUser record) {
		record.setSts("Y");
		record.setCreateTime(new Date());
		return vUser.insert(record);
	}

	@Override
	public List<VUser> selectByOpenid(String openid) {
		
		return vUser.selectByOpendid(openid);
	}

	

}
